package com.guocheng.base;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 需要分页的接收实体类要继承该类
 */
@Data
@NoArgsConstructor
public class BaseModel implements Serializable {

    /**
     * 当前页数
     */
    @TableField(exist = false,select = false)
    private Integer page = 1;

    /**
     * 每页数量
     */
    @TableField(exist = false,select = false)
    private Integer limit = 20;

    /**
     * 排序字段
     */
    @TableField(exist = false,select = false)
    private String orderBy = null;

    /**
     * 排序规则(true、升序(asc)，false降序(desc))
     */
    @TableField(exist = false,select = false)
    private Boolean isSort = true;

}
